﻿using BCCommon.Enums;
using BCCommon.Extensions;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.Agent.AgentApplicationRecord
{
    /// <summary>
    /// 代理商申请公司信息
    /// </summary>
    public class AgentApplicationRequestCompanyDto
    {
        /// <summary>
        /// 公司名称
        /// </summary>
        [Display(Name = "公司名称")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string CompanyName { get; set; }

        /// <summary>
        /// 公司业务类型
        /// </summary>
        [Display(Name = "公司业务类型")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string BusinessType { get; set; }

        /// <summary>
        /// 公司主账号Id(负责人)
        /// </summary>
        [Display(Name = "公司主账号Id(负责人)")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public long CompanyAdminId { get; set; }

        /// <summary>
        /// 负责人姓名
        /// </summary>
        [Display(Name = "负责人姓名")]
        public string AdminFullName { get; set; }

        /// <summary>
        /// 公司成立时间
        /// </summary>
        [Display(Name = "公司成立时间")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 公司状态
        /// </summary>
        [Display(Name = "公司状态")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public CompanyStatus CompanyStatus { get; set; }

        /// <summary>
        /// 公司状态描述
        /// </summary>
        [Display(Name = "公司状态描述")]
        public string CompanyStatusStr { get { return this.CompanyStatus.GetDescriptionString(); } }

        /// <summary>
        /// 营业执照
        /// </summary>
        [Display(Name = "营业执照")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string BusinessLicense { get; set; }

        /// <summary>
        /// 社会统一代码
        /// </summary>
        [Display(Name = "社会统一代码")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string BusinessLicenseNo { get; set; }

        /// <summary>
        /// 公司地址
        /// </summary>
        [Display(Name = "公司地址")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string CompanyAddress { get; set; }

        /// <summary>
        /// 公司电话
        /// </summary>
        [Display(Name = "公司电话")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string CompanyPhone { get; set; }

        /// <summary>
        /// 对公账户图片
        /// </summary>
        [Display(Name = "对公账户图片")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string CompanyFinanceAddress { get; set; }

        /// <summary>
        /// 开户行名称
        /// </summary>
        [Display(Name = "开户行名称")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string BankName { get; set; }
    }
}
